package Overriding;

public class Overloading {
    public int test(){
        System.out.println("test1");
        return 1;
    }

    public void test(int a){//方法重载
        System.out.println("test2");
    }

    //以下两个参数类型顺序不同
    public String test(int a,String s) {
        System.out.println("test3");
        return "returntest3";//Method override
    }

    public String test(String s,int a){
        System.out.println("test4");//Method override
        return "returntest4";
    }

    public static void main(String[] args){
        Overloading o = new Overloading();
        System.out.println(o.test());//default none character
        o.test(1);
        System.out.println(o.test(1,"test3"));
        System.out.println(o.test("test4",1));
    }
}